package com.crscd.springbootmapper4.entity;

import com.crscd.springbootmapper4.dao.ListStringTypeHandler;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Id;
import lombok.Data;
import tk.mybatis.mapper.annotation.ColumnType;
import tk.mybatis.mapper.annotation.KeySql;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author lzy
 * @create 2019-05-31 下午2:39
 */
@Data
public class Address implements Serializable {
    private static final long serialVersionUID = 160474218921961100L;

    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer id;
    private String province;

    @ColumnType(typeHandler = ListStringTypeHandler.class)
    private List<String> city;

}
